<?php
namespace Admin\Controller;
use Admin\Controller\CommonController;
use Think\BackUp;
class BackController extends CommonController {



	public function back(){

		$back = new BackUp();
		$res = $back->  backupMySqlData('localhost', 'root', '123456', 'YouDbName');  
		if ($res) {
			$this->success('备份成功');
			exit();
			# code...
		}

	}



}